<template>
  <div class="docker-server">
    <div v-html="pageContent">


    </div>
  </div>
</template>

<script type="text/ecmascript-6">
    export default {
        name: "server",
      data(){
          return{
            pageContent:'',
          }
      },
      activated(){
           this.getDockerPage();
          
		
      },
      methods:{
        getDockerPage() {
            this.$axios.post("/pay", {
                        status:this.$route.query.status,name:JSON.parse(localStorage.getItem("user")).userName
                    })
                    .then(res => {  
                      console.log(111111111111,res)
                       document.querySelector('body').innerHTML = res.data;//查找到当前页面的body，将后台返回的form替换掉他的内容
                       document.forms[0].submit();  
                    })
         
        }
      }
    }
</script>

<style scoped>

</style>

